<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">
   
<h:head>
</h:head>

<h:body>
	<p:layout fullPage="true">   
   
	   <p:layoutUnit position="north" size="100" style="display:block; text-align:center">
			   <h1>Registrar Usuario</h1>
			   </p:layoutUnit> 
	    <p:layoutUnit position="center" style="display:block; text-align:center">
	   	<h:form>
		    User:<h:inputText value="#{MBUser.usuario.username}"/><br></br>      
			Pass:<p:password match="pwdconf" required="true" id="pwd" value="#{MBUser.usuario.passUser}"/><br></br>
		 	Verificar Pass:<p:password id="pwdconf" required="true" value="#{MBUser.passconfirm}"/><br></br>
			Nombre:<h:inputText value="#{MBUser.usuario.nombreUser}"/><br></br>    
			Apellido:<h:inputText value="#{MBUser.usuario.apellidoUser}"/><br></br>   
			
		   <h:commandButton value="Registrarse" action="#{MBUser.regUser}"/>
	  	</h:form>
	  </p:layoutUnit>
	</p:layout>
</h:body>   
</ui:composition>